<?php
namespace app\api\validate;
use think\Validate;

class Financial extends Validate{
	protected $regex=['price'=>'\d+$|\d+\.{0,1}[0-9]{0,2}$'];
	public $message=[
    	'money.require'=>'请输入提现金额',
    	'money.regex'=>'提现金额不正确,最多保留两位小数',
    ];
    
   	public $rule=[
	   	'money'=>'require|regex:price',
   	];
    public $scene=[
    	'withdraw'=>['money'],
    ]; 
    
}
?>